package com.PopulateDB;

public class CreateAll {
	static int noOfUsers = 100;
	
	public static void main(String args[]){
		// TODO: read db fill properties from file
		int noOfStates = -1;
		int noOfCategories = -1;
		int numberOfItems = 300;
		int numberOfBids = 300;
		
		// Creating the states
		Populate.populateOnce(new PopulateStates(), noOfStates);
		for(int i=0; i<100; i++)
			System.out.println(PopulateStates.getRandomState());
		for(int i=0; i<50; i++)
			System.out.println(MakeAddress.getZip());
		
		Populate.populateOnce(new PopulateCategories(), noOfCategories);
		for(int i=0; i<100; i++)
			System.out.println(PopulateCategories.getRandomCategory());
		
		// Create the users
		System.out.println("\nCreating users...");
		Populate.populate(new PopulateUsers(), noOfUsers);
		System.out.println("\nFinished creating users.");
		
		
		// Create the items
		System.out.println("\nCreating items...");
		Populate.populate(new PopulateItems(), numberOfItems);
		System.out.println("Finished creating items.");
		
		/*
		// Create the bids
		System.out.println("\nCreating bids...");
		new Populate(new PopulateBids(), numberOfBids);
		System.out.println("Finished creating bids.");*/
	}
}
